package com.bbs.model;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Table;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Created by chaibin on 2017-12-9.
 * ProjectName:webTest
 * PackageName:com.bbs.model
 * ClassName:Article
 * Version:1.0
 * Desc:**
 */
@Entity
@Table(name = "article")
@DynamicInsert(true)
@DynamicUpdate(true)
public class ArticleType implements Serializable{
    private long id;
    private Long perentId;
    private Long articleTypeId;
    private String title;
    private String content;
    private Long articleType;
    private Long userId;
    private Timestamp reportTime;
    private Integer suggestCount;
    private Byte isReport;
    private Integer verifyId;
    private Timestamp verifyDate;

    @Id
    @Column(name = "id", nullable = false)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "perent_id", nullable = true)
    public Long getPerentId() {
        return perentId;
    }

    public void setPerentId(Long perentId) {
        this.perentId = perentId;
    }

    @Basic
    @Column(name = "article_type_id", nullable = true)
    public Long getArticleTypeId() {
        return articleTypeId;
    }

    public void setArticleTypeId(Long articleTypeId) {
        this.articleTypeId = articleTypeId;
    }

    @Basic
    @Column(name = "title", nullable = true, length = 300)
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Basic
    @Column(name = "content", nullable = true, length = -1)
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Basic
    @Column(name = "article_type", nullable = true)
    public Long getArticleType() {
        return articleType;
    }

    public void setArticleType(Long articleType) {
        this.articleType = articleType;
    }

    @Basic
    @Column(name = "user_id", nullable = true)
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Basic
    @Column(name = "report_time", nullable = true)
    public Timestamp getReportTime() {
        return reportTime;
    }

    public void setReportTime(Timestamp reportTime) {
        this.reportTime = reportTime;
    }

    @Basic
    @Column(name = "suggest_count", nullable = true)
    public Integer getSuggestCount() {
        return suggestCount;
    }

    public void setSuggestCount(Integer suggestCount) {
        this.suggestCount = suggestCount;
    }

    @Basic
    @Column(name = "is_report", nullable = true)
    public Byte getIsReport() {
        return isReport;
    }

    public void setIsReport(Byte isReport) {
        this.isReport = isReport;
    }

    @Basic
    @Column(name = "verify_id", nullable = true)
    public Integer getVerifyId() {
        return verifyId;
    }

    public void setVerifyId(Integer verifyId) {
        this.verifyId = verifyId;
    }

    @Basic
    @Column(name = "verify_date", nullable = true)
    public Timestamp getVerifyDate() {
        return verifyDate;
    }

    public void setVerifyDate(Timestamp verifyDate) {
        this.verifyDate = verifyDate;
    }

}
